export default [
  {
    url: '/api/login',
    method: 'post',
    response: () => {
      return {
        token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOjEsIlVzZXJuYW1lIjoicm9vdCIsIk5pY2tuYW1lIjoi57O757uf566h55CG5ZGYIiwiUm9sZSI6bnVsbCwiQnVmZmVyVGltZSI6ODY0MDAsImV4cCI6MTY1OTc5NDU3OSwiaXNzIjoiSENZIiwibmJmIjoxNjU5MTg4Nzc5LCJzdWIiOiJhbGwifQ.R3_W18ZDialZBRxosQZ-bTY3i7SIvgC2tM-_-LOUaq8',
        alias: '系统管理员',
        lv: 'admin'
      }
    }
  },
  {
    url: '/api/user/getRoutes',
    method: 'post',
    response: () => {
      return {
        code: 0,
        info: [
          {
            id: 1,
            path: '/home',
            name: 'Home',
            meta: { showLink: true, icon: 'Apple', title: 'menus.Home' },
            children: []
          },
          {
            id: 2,
            path: '/system',
            redirect: '/system',
            meta: { showLink: true, icon: 'Setting', title: 'menus.SystemManage', rank: 11 },
            children: [
              {
                id: 3,
                path: '/system/user',
                name: 'User',
                meta: { showLink: true, icon: 'AlarmClock', title: 'menus.User' }
              },
              {
                id: 4,
                path: '/system/dept',
                name: 'Dept',
                meta: { showLink: true, icon: 'Apple', title: 'menus.Dept' }
              }
            ]
          },
          {
            id: 5,
            path: '/host',
            redirect: '/host',
            meta: { showLink: true, icon: 'ArrowDown', title: 'menus.HostManage', rank: 20 },
            children: [
              {
                id: 6,
                path: '/host/application',
                name: 'App',
                meta: { showLink: true, icon: 'ArrowDownBold', title: 'menus.App' }
              },
              {
                id: 7,
                path: '/host/server',
                name: 'Host',
                meta: { showLink: true, icon: 'ArrowLeft', title: 'menus.Host' }
              },
              {
                id: 8,
                path: '/host/desktop',
                name: 'Desktop',
                meta: { showLink: false, icon: 'ArrowLeftBold', title: 'menus.Desktop' }
              }
            ]
          },
          {
            id: 9,
            path: '/demo/transition',
            name: 'transition',
            meta: { showLink: true, icon: 'Apple', title: 'menus.Demo' },
            children: []
          }
        ]
      }
    }
  },
  {
    url: '/api/user/page',
    method: 'get',
    response: () => {
      return {
        list: [
          {
            id: '1',
            username: 'root',
            password: '',
            nickname: '系统管理员',
            status: 1,
            is_online: 1,
            email: '3@q.com',
            creator: 'root',
            creator_id: 1,
            create_time: 1
          },
          {
            id: '1548332644859645952',
            username: 'user1',
            password: '',
            nickname: 'user1',
            status: 2,
            is_online: 0,
            email: 'user1',
            creator: 'root',
            creator_id: 1,
            create_time: 1657986243
          },
          {
            id: '1548339422469033984',
            username: 'user3',
            password: '',
            nickname: 'user3',
            status: 2,
            is_online: 0,
            email: 'user3',
            creator: 'root',
            creator_id: 1,
            create_time: 1657987859
          }
        ],
        total: 3
      }
    }
  },
  {
    url: '/api/team/page',
    method: 'get',
    response: () => {
      return {
        list: [
          {
            id: '1548681410812841984',
            name: '和信',
            parentId: '0',
            max_user_num: 72,
            balance_user_num: 0,
            status: 86,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658069396
          },
          {
            id: '1548681744092237824',
            name: '湖北分公司',
            parentId: '1548681410812841984',
            max_user_num: 72,
            balance_user_num: 0,
            status: 86,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658069475
          },
          {
            id: '1548682053728342016',
            name: '开发部',
            parentId: '1548681744092237824',
            max_user_num: 21,
            balance_user_num: 0,
            status: 60,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658069549
          },
          {
            id: '1548682250168569856',
            name: '测试部',
            parentId: '1548681744092237824',
            max_user_num: 21,
            balance_user_num: 0,
            status: 60,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658069596
          },
          {
            id: '1548683175591415808',
            name: 'UAM组',
            parentId: '1548682053728342016',
            max_user_num: 21,
            balance_user_num: 0,
            status: 60,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658069816
          },
          {
            id: '1548683325814607872',
            name: 'IDP组',
            parentId: '1548682053728342016',
            max_user_num: 21,
            balance_user_num: 0,
            status: 60,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658069852
          },
          {
            id: '1548683635891113984',
            name: '北京分公司',
            parentId: '1548681410812841984',
            max_user_num: 2,
            balance_user_num: 2,
            status: 19,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658069926
          },
          {
            id: '1548685388741087232',
            name: '财务部',
            parentId: '1548683635891113984',
            max_user_num: 2,
            balance_user_num: 2,
            status: 19,
            creator: '系统管理员',
            creator_id: 1,
            create_time: 1658070344
          }
        ],
        total: 0
      }
    }

  },
  {
    url: '/api/app/page',
    method: 'get',
    response: () => {
      return {
        list: [
          {
            id: '1548671717486891008',
            name: 'test',
            alias: 'test',
            protocol: 'rdp',
            ip: '192.168.51.37',
            port: 3389,
            account_type: 0,
            username: 'administrator',
            password: 'admin@123',
            credential_id: '0',
            description: '花分系则者结话构间后目之较。住义再委切你热车广义方身以民做育。产白统必争合解事道例共放记造议问见。外包开表号运效许金值四共山价前体。',
            gateway_id: '1',
            connect_params: '',
            is_desktop: false,
            creator: '系统管理员',
            creator_id: '1',
            create_time: 1658067085
          }
        ],
        total: 1
      }
    }
  },
  {
    url: '/api/host/page',
    method: 'get',
    response: () => {
      return {
        list: [
          {
            id: '1557671794561781760',
            host_name: '-',
            ip: '170.10.1.1',
            communication_port: 19999,
            domain: 'win-domain',
            host_alias: '主机名-别名',
            status: 1,
            add_type: 1
          }
        ],
        total: 1
      }
    }
  }
]
